package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * (Diary)表实体类
 *
 * @author makejava
 * @since 2022-11-30 16:38:57
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("diary")
public class Diary {
    @TableId
    private Long id;

    private String weather;
    //植物状态（健康、缺水、枯萎等）
    private String state;
    //日记内容
    private String content;
    //植物图片
    private String picture;
    //是否允许评论(0允许，1不允许)默认为0
    private Integer isComment;
    //点赞量
    private Long likeCount;
    
    private Long createBy;
    
    private String createTime;
    
    private Long updateBy;
    
    private String updateTime;
    //标题
    private String title;

    private Long plantId;

    private int delFlag;
}

